﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ERPWinFormWork.Test.Test.Dtos.Write
{
    /// <summary>
    /// 修改物品检验DTO
    /// </summary>
    public class UpdateGoods_InspectionDtos
    {
        /// <summary>
        /// 物品检验Id
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 检验类型(1.来料检验、2.出货检验)
        /// </summary>
        public int Inspection_Type { get; set; }
        /// <summary>
        /// 检验编号
        /// </summary>
        public string InspectionNode { get; set; }
        /// <summary>
        /// 检验单名称
        /// </summary>
        public string InspectionName { get; set; }
        /// <summary>
        /// 发货日期
        /// </summary>
        public DateTime Shipment_Date { get; set; }
        /// <summary>
        /// 检验日期
        /// </summary>
        public DateTime Inspection_Date { get; set; }
        /// <summary>
        /// 检验部门Id
        /// </summary>
        public int Department_Id { get; set; }
        /// <summary>
        /// 检验人Id
        /// </summary>
        public int User_Id { get; set; }
        /// <summary>
        /// 销售Id
        /// </summary>
        public int? Sale_Id { get; set; }
        /// <summary>
        /// 产品Id
        /// </summary>
        public int? ProductId { get; set; }
        /// <summary>
        /// 采购Id
        /// </summary>
        public int? Purchase_Id { get; set; }
        /// <summary>
        /// 物料Id
        /// </summary>
        public int? MaterialId { get; set; }
        /// <summary>
        /// 批次号
        /// </summary>
        public string Batch { get; set; }
        /// <summary>
        /// 检验项目Id
        /// </summary>
        public int Testing_ItemsId { get; set; }
        /// <summary>
        /// 致命缺陷数
        /// </summary>
        public int Fatal_DefectCount { get; set; }
        /// <summary>
        /// 严重缺陷数
        /// </summary>
        public int Serious_DefectCount { get; set; }
        /// <summary>
        /// 轻微缺陷数
        /// </summary>
        public int Minor_DefectCount { get; set; }
        /// <summary>
        /// 检测数量
        /// </summary>
        public int Inspection_Count { get; set; }
        /// <summary>
        /// 合格数量
        /// </summary>
        public int Qualified_Count { get; set; }
        /// <summary>
        /// 不合格数量
        /// </summary>
        public int NoQualified_Count { get; set; }
        /// <summary>
        /// 致命缺陷率
        /// </summary>
        public int Fatal_Defect_Rate { get; set; }
        /// <summary>
        /// 严重缺陷率
        /// </summary>
        public int Serious_Defect_Rate { get; set; }
        /// <summary>
        /// 轻微缺陷率
        /// </summary>
        public int Minor_Defect_Rate { get; set; }
        /// <summary>
        /// 检测结果
        /// </summary>
        public string Detection_Result { get; set; }
        /// <summary>
        /// 检验结果备注
        /// </summary>
        public string Notes { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public int CreateUserId { get; set; }
        /// <summary>
        /// 修改人
        /// </summary>
        public int? UpDataUserId { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; } = DateTime.Now;
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpDataTime { get; set; }
    }
}
